<?php
/*
 * @Author: your name
 * @Date: 2021-11-03 15:16:15
 * @LastEditTime: 2021-12-15 14:42:19
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \property\app\Models\admin_model\Column.php
 */

namespace App\Models\admin_model;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

class FindShopSettngs extends Model
{
    use HasFactory;
    static string $tableName = 'find_shop_settings';

    public static function selOne($field='*')
    {

        return DB::select(' SELECT '.$field.' FROM ' . self::$tableName . '  LIMIT 1 ');
    }
    public static function updateOne($formData)
    {
        return DB::table(self::$tableName)->update($formData);
    }  
}
